package controllers;

public class MoveServoThread extends Thread {
	
	byte[] bytes;

	public MoveServoThread (byte[] bytes) {
		this.bytes = bytes;
	}

	public void run() {
		try {
			SerialSpeaker.writeToSerialPort(bytes);
			Thread.sleep(1);
		}
		catch (InterruptedException e) {
			//this code is run if the thread is interrupted
		}
	}
	
}
